<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录</title>
</head>
<body>
	<h2>Demo登录页</h2>
	<!--
	让UsernamePasswordAuthentication Filter过滤器能处理，默认的是/login
	-->
	<form action="/authentication/form" method="post">
		<table>
			<tr>
				<td>用户名:</td>
				<td><input type="text" name="username"></td>
			</tr>
			<tr>
				<td>密码:</td>
				<td><input type="password" name="password"></td>
			</tr>
			<tr>
				<td>图形验证码:</td>
				<td>
					<input type="text" name="imageCode">
					<img src="/code/image?width=200">
				</td>
			</tr>
			<!--记住我复选框，需要name="remember-me" -->
			<tr>
				<td colspan="2"><input type="checkbox" name="remember-me">记住我</td>
			</tr>
			<tr>
				<td colspan="2"><button type="submit">登录</button></td>
			</tr>
		</table>
	</form>


	<h2>短信验证码登录</h2>
	<form action="/authentication/mobile" method="post">
		<table>
			<tr>
				<td>手机号:</td>
				<td><input type="text" name="mobile" value="13012345678"></td>
			</tr>
			<tr>
				<td>短信验证码:</td>
				<td>
					<input type="text" name="smsCode">
					<a href="/code/sms?mobile=13012345678">发送验证码</a>
				</td>
			</tr>
			<tr>
				<td colspan="2"><button type="submit">登录</button></td>
			</tr>
		</table>
	</form>

	<h2>社交登录</h2>
	<!--
		所有/auth请求开头的，都会被SocialAuthenticationFilter拦截，见属性SocialAuthenticationFilter.DEFAULT_FILTER_PROCESSES_URL
		qq是providerId，因为我们配置的是qq
	-->
<!--	<a href="/auth/qq">QQ登录</a>-->

	<a href="/qqLogin/callback.do">QQ登录</a>
	&nbsp;&nbsp;&nbsp;&nbsp;
	<!--
	filterProcessesUrl=/qqLogin/
	providerId=weixin
	-->
	<a href="/qqLogin/weixin">微信登录</a>



</body>
</html>